import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    component: resolve => require(['../pages/Login'], resolve)
  }, {
    path: '/login',
    component: resolve => require(['../pages/Login'], resolve)
  }, {
    path: '/index',
    component: resolve => require(['../pages/Index'], resolve),
    children: [{
      path: '',
      redirect: 'welcome'
    }, {
      path: 'welcome',
      component: resolve => require(['../pages/Welcome'], resolve)
    }, {
      path: 'data-center',
      component: resolve => require(['../pages/DataCenter'], resolve)
    }, {
      path: 'trading-record',
      component: resolve => require(['../pages/TradingRecord'], resolve)
    }, {
      path: 'transaction-package-list',
      component: resolve => require(['../pages/TransactionPackageList'], resolve)
    }, {
      path: 'transaction-new-package',
      component: resolve => require(['../pages/TransactionNewPackage'], resolve)
    }, {
      path: 'company-aptitude-audit',
      component: resolve => require(['../pages/CompanyAptitudeAudit'], resolve)
    }, {
      path: 'law-firm-audit',
      component: resolve => require(['../pages/LawFirmAudit'], resolve)
    }, {
      path: 'law-firm-inspect',
      component: resolve => require(['../pages/LawFirmInspect'], resolve)
    }, {
      path: 'lawyer-msg-manage',
      component: resolve => require(['../pages/lawyerMsgManage'], resolve)
    }, {
      path: 'lawyer-audit',
      component: resolve => require(['../pages/lawyerAudit'], resolve)
    }, {
      path: 'message-center',
      component: resolve => require(['../pages/MessageCenter'], resolve)
    }, {
      path: 'transaction-order-manage',
      component: resolve => require(['../pages/TransactionOrderManage'], resolve)
    }, {
      path: 'transaction-notice',
      component: resolve => require(['../pages/TransactionNotice'], resolve)
    }, {
      path: 'contract-review',
      component: resolve => require(['../pages/ContractReview'], resolve)
    }, {
      path: 'law-order-manage',
      component: resolve => require(['../pages/LawOrderManage'], resolve)
    }, {
      path: 'law-notice',
      component: resolve => require(['../pages/LawNotice'], resolve)
    }, {
      path: 'cm-transaction-list',
      component: resolve => require(['../pages/CmTransactionList'], resolve)
    }, {
      path: 'cm-transaction-reallocate',
      component: resolve => require(['../pages/CmTransactionReallocate'], resolve)
    }, {
      path: 'cm-law-list',
      component: resolve => require(['../pages/CmLawList'], resolve)
    }, {
      path: 'cm-law-reallocate',
      component: resolve => require(['../pages/CmLawReallocate'], resolve)
    }, {
      path: 'cm-error-list',
      component: resolve => require(['../pages/CmErrorList'], resolve)
    }, {
      path: 'tm-order-list',
      component: resolve => require(['../pages/TmOrderList'], resolve)
    }, {
      path: 'tm-error-list',
      component: resolve => require(['../pages/TmErrorList'], resolve)
    }, {
      path: 'tm-message',
      component: resolve => require(['../pages/TmMessage'], resolve)
    }, {
      path: 'tms-order-list',
      component: resolve => require(['../pages/TmsOrderList'], resolve)
    }, {
      path: 'tms-alarm-list',
      component: resolve => require(['../pages/TmsAlarmList'], resolve)
    }, {
      path: 'tms-error-list',
      component: resolve => require(['../pages/TmsErrorList'], resolve)
    }, {
      path: 'tms-message-manage',
      component: resolve => require(['../pages/TmsMessageManage'], resolve)
    }, {
      path: 'lms-order-list',
      component: resolve => require(['../pages/LmsOrderList'], resolve)
    }, {
      path: 'lms-alarm-list',
      component: resolve => require(['../pages/LmsAlarmList'], resolve)
    }, {
      path: 'lms-complaint-list',
      component: resolve => require(['../pages/LmsComplaintList'], resolve)
    }, {
      path: 'lms-message-manage',
      component: resolve => require(['../pages/LmsMessageManage'], resolve)
    }, {
      path: 'transaction-evaluate',
      component: resolve => require(['../pages/TransactionEvaluate'], resolve)
    }, {
      path: 'law-evaluate',
      component: resolve => require(['../pages/LawEvaluate'], resolve)
    }, {
      path: 'lawyer-evaluate',
      component: resolve => require(['../pages/LawyerEvaluate'], resolve)
    }, {
      path: 'news-content',
      component: resolve => require(['../pages/NewsContent'], resolve)
    }, {
      path: 'website-notice',
      component: resolve => require(['../pages/WebsiteNotice'], resolve)
    }, {
      path: 'help-center',
      component: resolve => require(['../pages/HelpCenter'], resolve)
    }, {
      path: 'role-manage',
      component: resolve => require(['../pages/RoleManage'], resolve)
    }, {
      path: 'user-manage',
      component: resolve => require(['../pages/UserManage'], resolve)
    }]
  }, {
    path: '/company-aptitude-audit-details',
    component: resolve => require(['../pages/CompanyAptitudeAuditDetails'], resolve)
  }, {
    path: '/trading-record-details',
    component: resolve => require(['../pages/TradingRecordDetails'], resolve)
  }, {
    path: '/message-center-details',
    component: resolve => require(['../pages/MessageCenterDetails'], resolve)
  }, {
    path: '/busines-law-notice',
    component: resolve => require(['../pages/BusinesLawNotice'], resolve)
  }, {
    path: '/busines-law-drawing',
    component: resolve => require(['../pages/BusinesLawDrawing'], resolve)
  }, {
    path: '/busines-law-monitor',
    component: resolve => require(['../pages/BusinesLawMonitor'], resolve)
  }, {
    path: '/busines-law-complete',
    component: resolve => require(['../pages/BusinesLawComplete'], resolve)
  }, {
    path: '/cm-transaction-aptitude',
    component: resolve => require(['../pages/CmTransactionAptitude'], resolve)
  }, {
    path: '/cm-transaction-contract',
    component: resolve => require(['../pages/CmTransactionContract'], resolve)
  }, {
    path: '/cm-transaction-drawing',
    component: resolve => require(['../pages/CmTransactionDrawing'], resolve)
  }, {
    path: '/cm-transaction-flow',
    component: resolve => require(['../pages/CmTransactionFlow'], resolve)
  }, {
    path: '/cm-order-details',
    component: resolve => require(['../pages/CmOrderDetails'], resolve)
  }, {
    path: '/cm-law-notice',
    component: resolve => require(['../pages/CmLawNotice'], resolve)
  }, {
    path: '/cm-law-drawing',
    component: resolve => require(['../pages/CmLawDrawing'], resolve)
  }, {
    path: '/cm-law-monitor',
    component: resolve => require(['../pages/CmLawMonitor'], resolve)
  }, {
    path: '/cm-law-complete',
    component: resolve => require(['../pages/CmLawComplete'], resolve)
  }, {
    path: '/tm-transaction-aptitude',
    component: resolve => require(['../pages/TmTransactionAptitude'], resolve)
  }, {
    path: '/tm-transaction-contract',
    component: resolve => require(['../pages/TmTransactionContract'], resolve)
  }, {
    path: '/tm-transaction-draw',
    component: resolve => require(['../pages/TmTransactionDraw'], resolve)
  }, {
    path: '/tm-transaction-draw-finish',
    component: resolve => require(['../pages/TmTransactionDrawFinish'], resolve)
  }, {
    path: '/tm-order-details',
    component: resolve => require(['../pages/TmOrderDetails'], resolve)
  }, {
    path: '/tms-order-details',
    component: resolve => require(['../pages/TmsOrderDetails'], resolve)
  }, {
    path: '/lms-order-notice',
    component: resolve => require(['../pages/LmsOrderNotice'], resolve)
  }, {
    path: '/lms-order-mapping',
    component: resolve => require(['../pages/LmsOrderMapping'], resolve)
  }, {
    path: '/lms-order-monitor',
    component: resolve => require(['../pages/LmsOrderMonitor'], resolve)
  }, {
    path: '/lms-order-finish',
    component: resolve => require(['../pages/LmsOrderFinish'], resolve)
  }, {
    path: '/addnews',
    component: resolve => require(['../pages/AddNews'], resolve)
  }, {
    path: '/addnotice',
    component: resolve => require(['../pages/AddNotice'], resolve)
  }, {
    path: '/addhelp',
    component: resolve => require(['../pages/AddHelp'], resolve)
  }, {
    path: '/addrole',
    component: resolve => require(['../pages/AddRole'], resolve)
  }, {
    path: '/adduser',
    component: resolve => require(['../pages/AddUser'], resolve)
  }, {
    path: '/allocation-authority/:id',
    component: resolve => require(['../pages/AllocationAuthority'], resolve)
  }, {
    path: '/law-details',
    component: resolve => require(['../pages/lawDetails'], resolve)
  }, {
    path: '/lawye-details',
    component: resolve => require(['../pages/lawyerDetails'], resolve)
  }, {
    path: '/law-evalua-details',
    component: resolve => require(['../pages/LawEvaluaDetails'], resolve)
  }, {
    path: '/lawyer-evalua-details',
    component: resolve => require(['../pages/LawyerEvaluaDetails'], resolve)
  }, {
    path: '/transaction-evaluate-details',
    component: resolve => require(['../pages/TransactionEvaluateDetails'], resolve)
  }, {
    path: '/transaction-edit-package',
    component: resolve => require(['../pages/TransactionEditPackage'], resolve)
  }]
})
